﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;

namespace QLBH.Models
{
    public class UnitsModel:ModelBase
    {
        public override NameValueCollection PrepareValue()
        {
            NameValueCollection uploadUnits = new NameValueCollection();
            uploadUnits.Add("id", this.Id.ToString());
            uploadUnits.Add("name", this.Name);
            uploadUnits.Add("comments", this.Comments);
            return uploadUnits;
        }
        private int id;
        public UnitsModel()
        {
        }
        public int Id
        {
            get { return id; }
            set { id = value; }
        }
        private string name;

        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        private string comments;

        public string Comments
        {
            get { return comments; }
            set { comments = value; }
        }
    }
}
